]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Don't unnecessarily go through Main for a property
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 22 Aug 2012 07:15:53 +0000 (04:15 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 22 Aug 2012 18:56:55 +0000 (15:56 -0300)
We *are* Main.layoutManager, here.

https://bugzilla.gnome.org/show_bug.cgi?id=682429

js/ui/layout.js

index 333b8098548bb23cac5c30f028c0adb43bb4cf28..9f1cf611b255b4759f0ea159ee4b8f7f8121ae6d 100644 (file)
@@ -314,7 +314,7 @@ const LayoutManager = new Lang.Class({
 
     get currentMonitor() {
         let index = global.screen.get_current_monitor();
-        return Main.layoutManager.monitors[index];
+        return this.monitors[index];
     },
 
     _startupAnimation: function() {